/*   
 * Copyright (c) 2012 by system INFORMATION TECHNOLOGY CO.
 *             All rights reserved                         
 */
package com.system.web.common.dao;

import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * @Description:
 * @Author <a href="dflin163@163.com">DaoFen.Lin</a>
 * @Date 2012-10-30
 * @Version 1.0.0
 */
public abstract class CommonDao {



    protected SqlSessionFactory sessionFactory;

    public SqlSessionFactory getSessionFactory() {
        return sessionFactory;
    }

    @Autowired
    @Qualifier("sessionFactory")
    public void setSessionFactory(SqlSessionFactory sessionFactory) {
        this.sessionFactory = sessionFactory;
    }

}
